package com.wenli.graduate2022.wenliGreenShop.service.servImpl;

import com.wenli.graduate2022.wenliGreenShop.entity.ProductImage;
import com.wenli.graduate2022.wenliGreenShop.repository.mapper.ProductImageMapper;
import com.wenli.graduate2022.wenliGreenShop.service.servDao.ProductImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author HuangHai
 * @date 2021/10/12 23:02
 */
@Service
public class ProductImageServImpl implements ProductImageService {

    @Autowired
    ProductImageMapper productImageMapper;

    @Override
    public List<ProductImage> findByType(Integer productId, Integer type) {
        return productImageMapper.findByType(productId,type);
    }

    @Override
    public List<ProductImage> findById(Integer productId) {
        return productImageMapper.findById(productId);
    }
}
